//
//  BAHeaderNode.h
//  BabyAlbum
//
//  Created by master on 17/2/15.
//  Copyright © 2017年 master. All rights reserved.
//

#import <AsyncDisplayKit/AsyncDisplayKit.h>


// 高度随编辑文字自动变高可以加个heightDidChange 代理向上一层传递刷新高度.
@interface BAHeaderNode : ASCellNode

//@property (nonatomic, strong)UIImage *image;


- (instancetype)initWithData:(BAAlbumModel *)model isEdit:(BOOL)isEdit selectPhotoBlock:(void (^)(void))block textChangeBlock:(void (^)(NSString *text))textChangeblock;


+ (CGFloat)calculteHeightWithData:(BAAlbumModel *)albumModel;

- (UIImage *)cover;
- (NSString *)detailText;

@end
